package drrr.orm;

import java.util.List;

/**
 * Created by lirance on 15/5/21.
 */
public class RoomMemberService extends Service {
    @Override
    public List<Entity> getAllEntities() {
        return getAllDao().getRoomMemberDao().getAllRoomMembers();
    }

    public List<Entity> getEntitiesbyID(int roomId) {
        return getAllDao().getRoomMemberDao().getRoomMembersbyId(roomId);
    }

    @Override

    public void insert(Entity entityRef) {
        getAllDao().getRoomMemberDao().insert((RoomMemberEntity) entityRef);
    }

    public void delete(Entity entity) {
        getAllDao().getRoomMemberDao().delete((RoomMemberEntity) entity);
    }

    public void update(Entity entity) {
        getAllDao().getRoomMemberDao().update((RoomMemberEntity) entity);
    }

}
